package com.guldan.jaina.provider;

import com.guldan.core.dubbo.client.ResponseDTO;
import com.guldan.core.search.Pagination;
import com.guldan.jaina.dto.area.AreaDTO;
import com.guldan.jaina.dto.area.AreaSearchDTO;

import java.util.List;

/**
 * Created by Silas.
 * Date: 2016/11/7
 * Time: 22:49
 */
public interface IAreaProvider {

    //获取单个区域，传入：areaid
    ResponseDTO<AreaDTO> get(Integer var1);

    //新增/更新单个区域，传入：AreaDTO
    ResponseDTO<AreaDTO> save(AreaDTO var1);

    //删除单个区域，传入：areaid
    ResponseDTO<Boolean> delete(Integer var1);

    //分页获取区域信息列表，传入：检索DTO
    ResponseDTO<Pagination<AreaDTO>> list(AreaSearchDTO var1);
    
    /**
     * 批量导入Area
     * @param list
     * @return
     */
    ResponseDTO<Boolean> batchImport(List<AreaDTO> list);
    

}
